ActiveReports 10
Listen<TModel1,TModel2,TValue>(TModel1,Expression<Func<TModel1,TModel2>>,Expression<Func<TModel2,TValue>>,Action) Method

GrapeCity.ActiveReports.Viewer.Win.v10 Assembly > GrapeCity.Viewer.Common.Model Namespace > ActiveModelListenExtensions Class > Listen Method : Listen<TModel1,TModel2,TValue>(TModel1,Expression<Func<TModel1,TModel2>>,Expression<Func<TModel2,TValue>>,Action) Method
Type of model the property references to
Gets first level property
Gets nested property
The action to perform on property change
Performs specific action on particular property change with nested property support
Syntax
'Declaration
 
Public Overloads Shared Function Listen
    (Of TModel1 As {Class, INotifyPropertyChanged},
     TModel2 As {Class, INotifyPropertyChanged},
     TValue)( _
   ByVal model As TModel1, _
   ByVal getter1 As Expression(Of Func(Of TModel1,TModel2)), _
   ByVal getter2 As Expression(Of Func(Of TModel2,TValue)), _
   ByVal action As Action _
) As IDisposable

Parameters

model
getter1
Gets first level property
getter2
Gets nested property
action
The action to perform on property change

Type Parameters

TModel1
TModel2
Type of model the property references to
TValue
See Also

Reference

ActiveModelListenExtensions Class
ActiveModelListenExtensions Members
Overload List